package mymobile.diagram.part;

import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import mymobile.diagram.edit.parts.AppMobileAppSettingEditPart;
import mymobile.diagram.edit.parts.AppMobileEditPart;
import mymobile.diagram.edit.parts.AppMobileMainViewEditPart;
import mymobile.diagram.edit.parts.ContainerEditPart;
import mymobile.diagram.edit.parts.ImageEditPart;
import mymobile.diagram.edit.parts.InputEditPart;
import mymobile.diagram.edit.parts.LabelEditPart;
import mymobile.diagram.edit.parts.ListEditPart;
import mymobile.diagram.edit.parts.SettingEditPart;
import mymobile.diagram.edit.parts.ViewEditPart;
import mymobile.diagram.edit.parts.ViewNextViewsEditPart;
import mymobile.diagram.edit.parts.ViewViewComponentsEditPart;
import mymobile.diagram.edit.parts.ViewViewSettingEditPart;
import mymobile.diagram.providers.MyMobileElementTypes;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.gmf.tooling.runtime.update.DiagramUpdater;

/**
 * @generated
 */
public class MyMobileDiagramUpdater {

	/**
	 * @generated
	 */
	public static List<MyMobileNodeDescriptor> getSemanticChildren(View view) {
		switch (MyMobileVisualIDRegistry.getVisualID(view)) {
		case ContainerEditPart.VISUAL_ID:
			return getContainer_1000SemanticChildren(view);
		}
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileNodeDescriptor> getContainer_1000SemanticChildren(
			View view) {
		if (!view.isSetElement()) {
			return Collections.emptyList();
		}
		mymobile.mobileTest.Container modelElement = (mymobile.mobileTest.Container) view
				.getElement();
		LinkedList<MyMobileNodeDescriptor> result = new LinkedList<MyMobileNodeDescriptor>();
		for (Iterator<?> it = modelElement.getViews().iterator(); it.hasNext();) {
			mymobile.mobileTest.View childElement = (mymobile.mobileTest.View) it
					.next();
			int visualID = MyMobileVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ViewEditPart.VISUAL_ID) {
				result.add(new MyMobileNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator<?> it = modelElement.getComponents().iterator(); it
				.hasNext();) {
			mymobile.mobileTest.Component childElement = (mymobile.mobileTest.Component) it
					.next();
			int visualID = MyMobileVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == InputEditPart.VISUAL_ID) {
				result.add(new MyMobileNodeDescriptor(childElement, visualID));
				continue;
			}
			if (visualID == ListEditPart.VISUAL_ID) {
				result.add(new MyMobileNodeDescriptor(childElement, visualID));
				continue;
			}
			if (visualID == LabelEditPart.VISUAL_ID) {
				result.add(new MyMobileNodeDescriptor(childElement, visualID));
				continue;
			}
			if (visualID == ImageEditPart.VISUAL_ID) {
				result.add(new MyMobileNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		{
			mymobile.mobileTest.AppMobile childElement = modelElement
					.getMyProfile();
			int visualID = MyMobileVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == AppMobileEditPart.VISUAL_ID) {
				result.add(new MyMobileNodeDescriptor(childElement, visualID));
			}
		}
		for (Iterator<?> it = modelElement.getSettings().iterator(); it
				.hasNext();) {
			mymobile.mobileTest.Setting childElement = (mymobile.mobileTest.Setting) it
					.next();
			int visualID = MyMobileVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == SettingEditPart.VISUAL_ID) {
				result.add(new MyMobileNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getContainedLinks(View view) {
		switch (MyMobileVisualIDRegistry.getVisualID(view)) {
		case ContainerEditPart.VISUAL_ID:
			return getContainer_1000ContainedLinks(view);
		case ViewEditPart.VISUAL_ID:
			return getView_2005ContainedLinks(view);
		case InputEditPart.VISUAL_ID:
			return getInput_2006ContainedLinks(view);
		case ListEditPart.VISUAL_ID:
			return getList_2007ContainedLinks(view);
		case AppMobileEditPart.VISUAL_ID:
			return getAppMobile_2008ContainedLinks(view);
		case LabelEditPart.VISUAL_ID:
			return getLabel_2009ContainedLinks(view);
		case SettingEditPart.VISUAL_ID:
			return getSetting_2010ContainedLinks(view);
		case ImageEditPart.VISUAL_ID:
			return getImage_2011ContainedLinks(view);
		}
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getIncomingLinks(View view) {
		switch (MyMobileVisualIDRegistry.getVisualID(view)) {
		case ViewEditPart.VISUAL_ID:
			return getView_2005IncomingLinks(view);
		case InputEditPart.VISUAL_ID:
			return getInput_2006IncomingLinks(view);
		case ListEditPart.VISUAL_ID:
			return getList_2007IncomingLinks(view);
		case AppMobileEditPart.VISUAL_ID:
			return getAppMobile_2008IncomingLinks(view);
		case LabelEditPart.VISUAL_ID:
			return getLabel_2009IncomingLinks(view);
		case SettingEditPart.VISUAL_ID:
			return getSetting_2010IncomingLinks(view);
		case ImageEditPart.VISUAL_ID:
			return getImage_2011IncomingLinks(view);
		}
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getOutgoingLinks(View view) {
		switch (MyMobileVisualIDRegistry.getVisualID(view)) {
		case ViewEditPart.VISUAL_ID:
			return getView_2005OutgoingLinks(view);
		case InputEditPart.VISUAL_ID:
			return getInput_2006OutgoingLinks(view);
		case ListEditPart.VISUAL_ID:
			return getList_2007OutgoingLinks(view);
		case AppMobileEditPart.VISUAL_ID:
			return getAppMobile_2008OutgoingLinks(view);
		case LabelEditPart.VISUAL_ID:
			return getLabel_2009OutgoingLinks(view);
		case SettingEditPart.VISUAL_ID:
			return getSetting_2010OutgoingLinks(view);
		case ImageEditPart.VISUAL_ID:
			return getImage_2011OutgoingLinks(view);
		}
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getContainer_1000ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getView_2005ContainedLinks(
			View view) {
		mymobile.mobileTest.View modelElement = (mymobile.mobileTest.View) view
				.getElement();
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		result.addAll(getOutgoingFeatureModelFacetLinks_View_NextViews_4004(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_View_ViewComponents_4002(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_View_ViewSetting_4001(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getInput_2006ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getList_2007ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getAppMobile_2008ContainedLinks(
			View view) {
		mymobile.mobileTest.AppMobile modelElement = (mymobile.mobileTest.AppMobile) view
				.getElement();
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		result.addAll(getOutgoingFeatureModelFacetLinks_AppMobile_AppSetting_4003(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_AppMobile_MainView_4005(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getLabel_2009ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getSetting_2010ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getImage_2011ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getView_2005IncomingLinks(
			View view) {
		mymobile.mobileTest.View modelElement = (mymobile.mobileTest.View) view
				.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		result.addAll(getIncomingFeatureModelFacetLinks_View_NextViews_4004(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_AppMobile_MainView_4005(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getInput_2006IncomingLinks(
			View view) {
		mymobile.mobileTest.Input modelElement = (mymobile.mobileTest.Input) view
				.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		result.addAll(getIncomingFeatureModelFacetLinks_View_ViewComponents_4002(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getList_2007IncomingLinks(
			View view) {
		mymobile.mobileTest.List modelElement = (mymobile.mobileTest.List) view
				.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		result.addAll(getIncomingFeatureModelFacetLinks_View_ViewComponents_4002(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getAppMobile_2008IncomingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getLabel_2009IncomingLinks(
			View view) {
		mymobile.mobileTest.Label modelElement = (mymobile.mobileTest.Label) view
				.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		result.addAll(getIncomingFeatureModelFacetLinks_View_ViewComponents_4002(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getSetting_2010IncomingLinks(
			View view) {
		mymobile.mobileTest.Setting modelElement = (mymobile.mobileTest.Setting) view
				.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		result.addAll(getIncomingFeatureModelFacetLinks_AppMobile_AppSetting_4003(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_View_ViewSetting_4001(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getImage_2011IncomingLinks(
			View view) {
		mymobile.mobileTest.Image modelElement = (mymobile.mobileTest.Image) view
				.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		result.addAll(getIncomingFeatureModelFacetLinks_View_ViewComponents_4002(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getView_2005OutgoingLinks(
			View view) {
		mymobile.mobileTest.View modelElement = (mymobile.mobileTest.View) view
				.getElement();
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		result.addAll(getOutgoingFeatureModelFacetLinks_View_NextViews_4004(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_View_ViewComponents_4002(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_View_ViewSetting_4001(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getInput_2006OutgoingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getList_2007OutgoingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getAppMobile_2008OutgoingLinks(
			View view) {
		mymobile.mobileTest.AppMobile modelElement = (mymobile.mobileTest.AppMobile) view
				.getElement();
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		result.addAll(getOutgoingFeatureModelFacetLinks_AppMobile_AppSetting_4003(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_AppMobile_MainView_4005(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getLabel_2009OutgoingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getSetting_2010OutgoingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<MyMobileLinkDescriptor> getImage_2011OutgoingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	private static Collection<MyMobileLinkDescriptor> getIncomingFeatureModelFacetLinks_AppMobile_AppSetting_4003(
			mymobile.mobileTest.Setting target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() == mymobile.mobileTest.MobileTestPackage.eINSTANCE
					.getAppMobile_AppSetting()) {
				result.add(new MyMobileLinkDescriptor(setting.getEObject(),
						target, MyMobileElementTypes.AppMobileAppSetting_4003,
						AppMobileAppSettingEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<MyMobileLinkDescriptor> getIncomingFeatureModelFacetLinks_View_NextViews_4004(
			mymobile.mobileTest.View target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() == mymobile.mobileTest.MobileTestPackage.eINSTANCE
					.getView_NextViews()) {
				result.add(new MyMobileLinkDescriptor(setting.getEObject(),
						target, MyMobileElementTypes.ViewNextViews_4004,
						ViewNextViewsEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<MyMobileLinkDescriptor> getIncomingFeatureModelFacetLinks_View_ViewComponents_4002(
			mymobile.mobileTest.Component target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() == mymobile.mobileTest.MobileTestPackage.eINSTANCE
					.getView_ViewComponents()) {
				result.add(new MyMobileLinkDescriptor(setting.getEObject(),
						target, MyMobileElementTypes.ViewViewComponents_4002,
						ViewViewComponentsEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<MyMobileLinkDescriptor> getIncomingFeatureModelFacetLinks_AppMobile_MainView_4005(
			mymobile.mobileTest.View target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() == mymobile.mobileTest.MobileTestPackage.eINSTANCE
					.getAppMobile_MainView()) {
				result.add(new MyMobileLinkDescriptor(setting.getEObject(),
						target, MyMobileElementTypes.AppMobileMainView_4005,
						AppMobileMainViewEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<MyMobileLinkDescriptor> getIncomingFeatureModelFacetLinks_View_ViewSetting_4001(
			mymobile.mobileTest.Setting target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() == mymobile.mobileTest.MobileTestPackage.eINSTANCE
					.getView_ViewSetting()) {
				result.add(new MyMobileLinkDescriptor(setting.getEObject(),
						target, MyMobileElementTypes.ViewViewSetting_4001,
						ViewViewSettingEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<MyMobileLinkDescriptor> getOutgoingFeatureModelFacetLinks_AppMobile_AppSetting_4003(
			mymobile.mobileTest.AppMobile source) {
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		mymobile.mobileTest.Setting destination = source.getAppSetting();
		if (destination == null) {
			return result;
		}
		result.add(new MyMobileLinkDescriptor(source, destination,
				MyMobileElementTypes.AppMobileAppSetting_4003,
				AppMobileAppSettingEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<MyMobileLinkDescriptor> getOutgoingFeatureModelFacetLinks_View_NextViews_4004(
			mymobile.mobileTest.View source) {
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		for (Iterator<?> destinations = source.getNextViews().iterator(); destinations
				.hasNext();) {
			mymobile.mobileTest.View destination = (mymobile.mobileTest.View) destinations
					.next();
			result.add(new MyMobileLinkDescriptor(source, destination,
					MyMobileElementTypes.ViewNextViews_4004,
					ViewNextViewsEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<MyMobileLinkDescriptor> getOutgoingFeatureModelFacetLinks_View_ViewComponents_4002(
			mymobile.mobileTest.View source) {
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		for (Iterator<?> destinations = source.getViewComponents().iterator(); destinations
				.hasNext();) {
			mymobile.mobileTest.Component destination = (mymobile.mobileTest.Component) destinations
					.next();
			result.add(new MyMobileLinkDescriptor(source, destination,
					MyMobileElementTypes.ViewViewComponents_4002,
					ViewViewComponentsEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<MyMobileLinkDescriptor> getOutgoingFeatureModelFacetLinks_AppMobile_MainView_4005(
			mymobile.mobileTest.AppMobile source) {
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		mymobile.mobileTest.View destination = source.getMainView();
		if (destination == null) {
			return result;
		}
		result.add(new MyMobileLinkDescriptor(source, destination,
				MyMobileElementTypes.AppMobileMainView_4005,
				AppMobileMainViewEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<MyMobileLinkDescriptor> getOutgoingFeatureModelFacetLinks_View_ViewSetting_4001(
			mymobile.mobileTest.View source) {
		LinkedList<MyMobileLinkDescriptor> result = new LinkedList<MyMobileLinkDescriptor>();
		mymobile.mobileTest.Setting destination = source.getViewSetting();
		if (destination == null) {
			return result;
		}
		result.add(new MyMobileLinkDescriptor(source, destination,
				MyMobileElementTypes.ViewViewSetting_4001,
				ViewViewSettingEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	public static final DiagramUpdater TYPED_INSTANCE = new DiagramUpdater() {
		/**
		 * @generated
		 */
		public List<MyMobileNodeDescriptor> getSemanticChildren(View view) {
			return MyMobileDiagramUpdater.getSemanticChildren(view);
		}

		/**
		 * @generated
		 */
		public List<MyMobileLinkDescriptor> getContainedLinks(View view) {
			return MyMobileDiagramUpdater.getContainedLinks(view);
		}

		/**
		 * @generated
		 */
		public List<MyMobileLinkDescriptor> getIncomingLinks(View view) {
			return MyMobileDiagramUpdater.getIncomingLinks(view);
		}

		/**
		 * @generated
		 */
		public List<MyMobileLinkDescriptor> getOutgoingLinks(View view) {
			return MyMobileDiagramUpdater.getOutgoingLinks(view);
		}
	};

}
